﻿using System.Collections.Generic;

namespace ToyundaPhone.Helpers
{
	public interface ITextSplitter
	{
		IEnumerable<TextSplitterToken> GetTokens(string text);
	}

	public struct TextSplitterToken
	{
		public int Offset { get; private set; }
		public bool IsMatch { get; private set; }
		public string Value { get; private set; }

		public TextSplitterToken(int offset, bool isMatch, string value) : this()
		{
			Offset = offset;
			IsMatch = isMatch;
			Value = value;
		}
	}
}
